|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.flamingo.common.icon.IcoWrapperResizableIcon
public class IcoWrapperResizableIcon
Implementation of ResizableIcon interface that wraps ICO files.
| Method Summary | |
|---|---|
void |
addAsynchronousLoadListener(AsynchronousLoadListener l)
Adds listener on the asynchronous loading events. |
static IcoWrapperResizableIcon |
getIcon(java.io.InputStream inputStream,
java.awt.Dimension initialDim)
Returns the icon for the specified input stream. |
static IcoWrapperResizableIcon |
getIcon(java.net.URL location,
java.awt.Dimension initialDim)
Returns the icon for the specified URL. |
int |
getIconHeight()
|
int |
getIconWidth()
|
boolean |
isLoading()
Returns indication whether the content is still loading. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
void |
removeAsynchronousLoadListener(AsynchronousLoadListener l)
Removes listener on the asynchronous loading events. |
void |
setDimension(java.awt.Dimension dim)
Changes the dimension of this icon. |
void |
setPreferredSize(java.awt.Dimension dim)
Sets the preferred size for this icon. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.Icon |
|---|
getIconHeight, getIconWidth, paintIcon |
| Method Detail |
|---|
public static IcoWrapperResizableIcon getIcon(java.net.URL location,
java.awt.Dimension initialDim)
location - Icon URL.initialDim - Initial dimension of the icon.
public static IcoWrapperResizableIcon getIcon(java.io.InputStream inputStream,
java.awt.Dimension initialDim)
inputStream - Icon input stream.initialDim - Initial dimension of the icon.
public void setDimension(java.awt.Dimension dim)
ResizableIconthis icon.
setDimension in interface ResizableIcondim - New dimension for this icon.public void addAsynchronousLoadListener(AsynchronousLoadListener l)
AsynchronousLoading
addAsynchronousLoadListener in interface AsynchronousLoadingl - Listener to add.public void removeAsynchronousLoadListener(AsynchronousLoadListener l)
AsynchronousLoading
removeAsynchronousLoadListener in interface AsynchronousLoadingl - Listener to remove.public int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic void setPreferredSize(java.awt.Dimension dim)
this icon. The rendering is
scheduled automatically.
dim - Preferred size.public boolean isLoading()
AsynchronousLoading
isLoading in interface AsynchronousLoadingtrue if the content is still loading,
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||